package mobi.hami.huapin.service.impl;

import mobi.hami.huapin.dao.ThumbupLogMapper;
import mobi.hami.huapin.model.ThumbupLog;
import mobi.hami.huapin.service.ThumbupLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Create by 小峰 on 2018/9/13.
 * 点赞记录
 */
@Service
public class ThumbupLogServiceImpl implements ThumbupLogService {

    @Autowired
    private ThumbupLogMapper thumbupLogMapper;

    /**
     * 增加一条点赞记录
     * @param thumbupLog
     * @return
     */
    public Integer saveThumbupLogByModel(ThumbupLog thumbupLog){
        return thumbupLogMapper.insertSelective(thumbupLog);
    }
}
